<!doctype html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>Puzzle</title>
    <link rel="stylesheet" type="text/css" href="puzzle.css">
    <script type="text/javascript" src="puzzle.js"></script>
</head>

<body>
    <div id="container">
        <div id="game">
            <div id="d1" onclick="move(1)">
                <img src="./assets/1.png">
            </div>
            <div id="d2" onclick="move(2)">
                <img src="./assets/2.png">
            </div>
            <div id="d3" onclick="move(3)">
                <img src="./assets/3.png">
            </div>
            <div id="d4" onclick="move(4)">
                <img src="./assets/4.png">
            </div>
            <div id="d5" onclick="move(5)">
                <img src="./assets/5.png">
            </div>
            <div id="d6" onclick="move(6)">
                <img src="./assets/6.png">
            </div>
            <div id="d7" onclick="move(7)">
                <img src="./assets/7.png">
            </div>
            <div id="d8" onclick="move(8)">
                <img src="./assets/8.png">
            </div>
        </div>
        <div id="control">
            <p>
                <rowspan id="timeText">总用时</rowspan>
                <rowspan id="timer"></rowspan>
            </p>
            <p>
                <rowspan id="start" onclick="start()">开始</rowspan>
                <rowspan id="reset" onclick="reset()">重来</rowspan>
            </p>
        </div>
    </div>
</body>

</html>